<?php /* Smarty version Smarty-3.1.21, created on 2015-05-30 15:12:56
         compiled from "D:\mywamp\www\2015php\wenda\Index\View\category\index.html" */ ?>
<?php /*%%SmartyHeaderCode:250585569d3788a4ed7-49036509%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'aa6ca068eac33ca1647793fd867860c741808d17' => 
    array (
      0 => 'D:\\mywamp\\www\\2015php\\wenda\\Index\\View\\category\\index.html',
      1 => 1432909799,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '250585569d3788a4ed7-49036509',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'mbx' => 0,
    'v' => 0,
    'cateRow' => 0,
    'currcid' => 0,
    'cateToAsk' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.21',
  'unifunc' => 'content_5569d378b433e8_51718882',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5569d378b433e8_51718882')) {function content_5569d378b433e8_51718882($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_substr')) include 'D:\\mywamp\\www\\2015php\\wenda\\Lwbphp\\Extend\\Org\\Smarty\\plugins\\modifier.substr.php';
if (!is_callable('smarty_modifier_date_format')) include 'D:\\mywamp\\www\\2015php\\wenda\\Lwbphp\\Extend\\Org\\Smarty\\plugins\\modifier.date_format.php';
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	<meta name="description" content="后盾问答"/>
	<?php echo $_smarty_tpl->getSubTemplate ("../Common/head.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	<link rel="stylesheet" href="<?php echo @constant('__PUBLIC__');?>
/Css/list.css" />
	<?php echo '<script'; ?>
 type="text/javascript" src="<?php echo @constant('__PUBLIC__');?>
/js/getask.js"><?php echo '</script'; ?>
>
<!-- top 结束-->

	<div id='location'>
		<?php if (isset($_GET['cid'])) {?>
		<a href="<?php echo @constant('__APP__');?>
?c=category&status=0">全部分类</a>&nbsp;&nbsp;>&nbsp;&nbsp;
			<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['mbx']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
				<?php if ($_GET['cid']==$_smarty_tpl->tpl_vars['v']->value['cid']) {?>
					<?php echo $_smarty_tpl->tpl_vars['v']->value['title'];?>

				<?php } else { ?>
					<a href="<?php echo @constant('__APP__');?>
?c=category&cid=<?php echo $_smarty_tpl->tpl_vars['v']->value['cid'];?>
&status=0"><?php echo $_smarty_tpl->tpl_vars['v']->value['title'];?>
</a>&nbsp;&nbsp;>
				<?php }?>
			<?php } ?>
		<?php }?>
	</div>

<!--------------------中部-------------------->
	<div id='center'>
		<div id='left'>
			<div id='cate-list'>
				<p class='title'>按分类查找</p>
				<ul>
					<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['cateRow']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
					<li>
						<a href="<?php echo @constant('__APP__');?>
?c=category&cid=<?php echo $_smarty_tpl->tpl_vars['v']->value['cid'];?>
&status=0"><?php echo $_smarty_tpl->tpl_vars['v']->value['title'];?>
</a>
					</li>
					<?php } ?>
				</ul>
			</div>
			<div id='answer-list'>
				<ul class='ans-sel'>
					<li class="<?php if ($_GET['status']==0) {?>on<?php }?>" data-cid="<?php echo $_smarty_tpl->tpl_vars['currcid']->value;?>
" data-status="0">
						<a href="javascript:;">待解决问题</a>
					</li>
					<li class="<?php if ($_GET['status']==1) {?>on<?php }?>" data-cid="<?php echo $_smarty_tpl->tpl_vars['currcid']->value;?>
" data-status="1">
						<a href="javascript:;" >已解决</a>
					</li>
					<li class="<?php if ($_GET['status']==2) {?>on<?php }?>" data-cid="<?php echo $_smarty_tpl->tpl_vars['currcid']->value;?>
" data-status="2">
						<a href="javascript:;" >高悬赏</a>
					</li>
					<li class="<?php if ($_GET['status']==3) {?>on<?php }?>" data-cid="<?php echo $_smarty_tpl->tpl_vars['currcid']->value;?>
" data-status="3">
						<a href="javascript:;" >零回答</a>
					</li>
				</ul>
				<!-- 待解决问题 -->
				<table id="asklist">
					<tr>
						<th class='t1'>标题</th>
						<th>回答数</th>
						<th>时间</th>
					</tr>
						<?php if (count($_smarty_tpl->tpl_vars['cateToAsk']->value)==0) {?>
							<tr><td style="font-size:20px;">当前分类没有问题 v_v</td></tr>
							<?php } else { ?>
						<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['cateToAsk']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
						<tr>
							<td class='t1 cons'>
								<a href="<?php echo @constant('__APP__');?>
?c=show&asid=<?php echo $_smarty_tpl->tpl_vars['v']->value['asid'];?>
">
									<b><?php echo $_smarty_tpl->tpl_vars['v']->value['reward'];?>
</b><?php echo smarty_modifier_substr($_smarty_tpl->tpl_vars['v']->value['content'],45);?>
</a>&nbsp;&nbsp;[<?php echo $_smarty_tpl->tpl_vars['v']->value['title'];?>
]
							</td>
							<td><?php echo $_smarty_tpl->tpl_vars['v']->value['answer'];?>
</td>
							<td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['v']->value['time'],"%Y-%m-%d");?>
</td>
						</tr>
						<?php } ?>
						<?php }?>
					<!--<tr class='page'>
						<td colspan='3'>
							<a href="">1</a>
							<a href="">2</a>
							<a href="">3</a>
						</td>
					</tr>-->
				</table>

			</div>
		</div>

		<!-- 右侧 -->
<?php echo $_smarty_tpl->getSubTemplate ("../Common/right.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!-- ---右侧结束---- -->
	</div>
<!--------------------中部结束-------------------->

<!-- 底部 -->
	<?php echo $_smarty_tpl->getSubTemplate ("../Common/foot.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!--[if IE 6]>
    <?php echo '<script'; ?>
 type="text/javascript" src="./Js/iepng.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    <?php echo '</script'; ?>
>
<![endif]-->
</body>
</html>
<!-- 底部结束 --><?php }} ?>
